Package com.cisco.pt.ipc.sim.impl
Class WirelessRouterImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.DeviceImpl
com.cisco.pt.ipc.sim.impl.CiscoDeviceImpl
com.cisco.pt.ipc.sim.impl.RouterImpl
com.cisco.pt.ipc.sim.impl.WirelessRouterImpl
- All Implemented Interfaces:
IPCObject,CiscoDevice,Device,Router,WirelessRouter
Information provided by the PKI file:
\class WirelessRouter
\brief WirelessRouter handles and manipulates wireless routers
\example network().getDevice("Wireless Router0")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionWirelessRouterImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNatEntry(String name, int extPort, int intPort, LinksysProtocol protoType, IPAddress ipAddress, boolean bEnable) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:getNatEntryAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidremoveNatEntry(String name, int extPort, int intPort, LinksysProtocol protoType, IPAddress ipAddress, boolean bEnable) Information provided by the PKI file:voidsetDefaultGateway(IPAddress gateway) Information provided by the PKI file:voidsetDMZEntry(boolean bEnable, IPAddress ipAddress) Information provided by the PKI file:voidsetFirmwareVersion(String version) Information provided by the PKI file:voidInformation provided by the PKI file:voidsetRemoteManagementEnable(boolean bEnable) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.RouterImpl
addSubInt, addUserPass, changePortEncapsulation, getClassMapManager, getNetflowExporterManager, getNetflowMonitorManager, getNetflowRecordManager, getParameterMapManager, getPolicyMapManager, getUserPass, getUserPassCount, removeSubInt, removeUserPassMethods inherited from class com.cisco.pt.ipc.sim.impl.CiscoDeviceImpl
addBootSystem, addUserPassEntry, clearFtpPasswd, clearFtpUsername, enterCommand, getBannerMotd, getBia, getBootSystems, getConfigRegister, getConsole, getConsoleLine, getEnablePassword, getEnableSecret, getFtpPasswd, getFtpUsername, getHostName, getIpcTerminalLine, getLine, getNextConfigRegister, getServicePasswordEncryption, getStartupFile, getTimeZone, getUserEntryAt, getVtyLine, isBooting, isUserExist, removeAllBootSystem, removeBootSystem, removeUserPassAt, removeUserPassEntry, setBannerMotd, setEnablePassword, setEnableSecret, setFtpPasswd, setFtpUsername, setHostName, setNextConfigRegister, setServicePasswordEncryption, setStartupFile, setTimeZone, skipBootMethods inherited from class com.cisco.pt.ipc.sim.impl.DeviceImpl
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.CiscoDevice
addBootSystem, addUserPassEntry, clearFtpPasswd, clearFtpUsername, enterCommand, getBannerMotd, getBia, getBootSystems, getConfigRegister, getConsole, getConsoleLine, getEnablePassword, getEnableSecret, getFtpPasswd, getFtpUsername, getHostName, getIpcTerminalLine, getLine, getNextConfigRegister, getServicePasswordEncryption, getStartupFile, getTimeZone, getUserEntryAt, getVtyLine, isBooting, isUserExist, removeAllBootSystem, removeBootSystem, removeUserPassAt, removeUserPassEntry, setBannerMotd, setEnablePassword, setEnableSecret, setFtpPasswd, setFtpUsername, setHostName, setNextConfigRegister, setServicePasswordEncryption, setStartupFile, setTimeZone, skipBootMethods inherited from interface com.cisco.pt.ipc.sim.Device
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Router
addSubInt, addUserPass, changePortEncapsulation, getClassMapManager, getNetflowExporterManager, getNetflowMonitorManager, getNetflowRecordManager, getParameterMapManager, getPolicyMapManager, getUserPass, getUserPassCount, removeSubInt, removeUserPass
-
Constructor Details
-
WirelessRouterImpl
public WirelessRouterImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setDefaultGateway
Information provided by the PKI file:
\brief Sets the default gateway. \param gateway, the IP address of the default gateway.- Specified by:
setDefaultGatewayin interfaceWirelessRouter- Parameters:
gateway- Takes in a parameter of gateway
-
setInternetConnectionType
Information provided by the PKI file:
\Sets the Internet connection type. \param type, the Internet connection type. Internet connection types: eDhcp = 0, ePppoe = 1, eStatic = 2- Specified by:
setInternetConnectionTypein interfaceWirelessRouter- Parameters:
type- Takes in a parameter of type
-
getInternetConnectionType
Information provided by the PKI file:
\Returns the Internet connection type. \param InternetConnectionType, the Internet connection type. Internet connection types: eDhcp = 0, ePppoe = 1, eStatic = 2- Specified by:
getInternetConnectionTypein interfaceWirelessRouter- Returns:
- InternetConnectionType Returns a InternetConnectionType
-
getDefaultGateway
Information provided by the PKI file:
\brief Returns the default gateway. \return ip, the IP address of the default gateway.- Specified by:
getDefaultGatewayin interfaceWirelessRouter- Returns:
- IPAddress Returns a IPAddress
-
setRemoteManagementEnable
public void setRemoteManagementEnable(boolean bEnable) Information provided by the PKI file:
\brief Enables or disables remote management. \param bEnable, true to enable remote management, false to disable it.- Specified by:
setRemoteManagementEnablein interfaceWirelessRouter- Parameters:
bEnable- Takes in a parameter of bEnable
-
isRemoteManagementEnable
public boolean isRemoteManagementEnable()Information provided by the PKI file:
\brief Returns true if remote management is enabled, otherwise false. \return bool, true if remote management is enabled, otherwise false.- Specified by:
isRemoteManagementEnablein interfaceWirelessRouter- Returns:
- boolean Returns a boolean
-
addNatEntry
public void addNatEntry(String name, int extPort, int intPort, LinksysProtocol protoType, IPAddress ipAddress, boolean bEnable) Information provided by the PKI file:
\brief Adds a NAT (port forwarding) entry. \param name, the name of the NAT entry. \param extPort, the Externet port number. \param intPort, the Internet port number. \param protoType, the protocol type. Protocol types: eTcp = 0, eUdp = 1, eBoth = 2 \param ipAddress, the IP address to forward to. \param bEnable, true to enable port forwarding for this entry, false to disable it.- Specified by:
addNatEntryin interfaceWirelessRouter- Parameters:
name- Takes in a parameter of nameextPort- Takes in a parameter of extPortintPort- Takes in a parameter of intPortprotoType- Takes in a parameter of protoTypeipAddress- Takes in a parameter of ipAddressbEnable- Takes in a parameter of bEnable
-
removeNatEntry
public void removeNatEntry(String name, int extPort, int intPort, LinksysProtocol protoType, IPAddress ipAddress, boolean bEnable) Information provided by the PKI file:
\brief Removes the specified NAT (port forwarding) entry. \param name, the name of the NAT entry. \param extPort, the Externet port number. \param intPort, the Internet port number. \param protoType, the protocol type. Protocol types: eTcp = 0, eUdp = 1, eBoth = 2 \param ipAddress, the IP address to forward to. \param bEnable, true to enable port forwarding for this entry, false to disable it.- Specified by:
removeNatEntryin interfaceWirelessRouter- Parameters:
name- Takes in a parameter of nameextPort- Takes in a parameter of extPortintPort- Takes in a parameter of intPortprotoType- Takes in a parameter of protoTypeipAddress- Takes in a parameter of ipAddressbEnable- Takes in a parameter of bEnable
-
removeAllNatEntries
public void removeAllNatEntries()Information provided by the PKI file:
\brief Removes all NAT (port forwarding) entries.- Specified by:
removeAllNatEntriesin interfaceWirelessRouter
-
getNatEntryCount
public int getNatEntryCount()Information provided by the PKI file:
\brief Returns the number of NAT (port forwarding) entries. \return int, the number of NAT (port forwarding) entries.- Specified by:
getNatEntryCountin interfaceWirelessRouter- Returns:
- int Returns a int
-
getNatEntryAt
Information provided by the PKI file:
\brief Returns the NAT configuration at the specified index. \param index, the index of the NAT configuration of interest. \return NatConfigEntry, the NatConfigEntry object at the specified index.- Specified by:
getNatEntryAtin interfaceWirelessRouter- Parameters:
index- Takes in a parameter of index- Returns:
- NATConfigEntry Returns a NATConfigEntry
-
getNatEntries
Information provided by the PKI file:
\brief Returns the list of NAT configurations. \return vector<NatConfigEntry>, the list of NatConfigEntry objects.- Specified by:
getNatEntriesin interfaceWirelessRouter- Returns:
- List<NATConfigEntry> Returns a List<NATConfigEntry>
-
setFirmwareVersion
Information provided by the PKI file:
\brief Sets the firmware version. \param version, the firmware version.- Specified by:
setFirmwareVersionin interfaceWirelessRouter- Parameters:
version- Takes in a parameter of version
-
getFirmwareVersion
Information provided by the PKI file:
\brief Returns the firmware version. \return QString, the firmware version.- Specified by:
getFirmwareVersionin interfaceWirelessRouter- Returns:
- String Returns a String
-
setDMZEntry
Information provided by the PKI file:
\brief Adds a DMZ entry. \param bEnable, true to enable DMZ, false to disable it. \param ipAddress, the IP address to place in the DMZ.- Specified by:
setDMZEntryin interfaceWirelessRouter- Parameters:
bEnable- Takes in a parameter of bEnableipAddress- Takes in a parameter of ipAddress
-
removeDMZEntry
public void removeDMZEntry()Information provided by the PKI file:
\brief Removes the DMZ entry.- Specified by:
removeDMZEntryin interfaceWirelessRouter
-